import { ApiProperty } from '@nestjs/swagger';
import { StatusContent } from '../entities/page.entity';

export class CreatePageDto {
  @ApiProperty({ description: '页面名' })
  name: string;
  @ApiProperty({ description: '路径地址' })
  path: string;
  @ApiProperty({ description: '评论开启' })
  isCommentOpen: boolean;
  @ApiProperty({ description: '内容' })
  content: string;
  @ApiProperty({ description: '内容' })
  contentHtml: string;
  @ApiProperty({ description: '状态' })
  status?: StatusContent;
  @ApiProperty({ description: '排序' })
  order?: number;
  @ApiProperty({ description: '出版时间' })
  publishTime?: Date;
}
